from django.conf.urls.defaults import *

urlpatterns = patterns('betterspace.courses.views',
    
    #viewing a list of an instructor's classes, e.g. rieffel/
    #(r'^(?P<instructor>\w+)/$','instructor_view'),
    
    #viewing a course index, e.g. rieffel/math1a/
    (r'^(?P<instructor>\w+)/(?P<course_name>\w+)/$','index'),
    
    #viewing an app within a course, e.g. rieffel/math1a/wiki/page/The_Mean_Value_Theorem/
    (r'^(?P<instructor>\w+)/(?P<course_name>\w+)/', include('betterspace.courses.appurls')),
    
    
)
